package 里氏替换原则;

/**
 * @ClassNameAnimal
 * @Description
 * @Author
 * @Date2021/11/11 20:04
 **/
public class Animal {
    private double runSpeed;

    public void setRunSpeed(double runSpeed){
        this.runSpeed = runSpeed;
    }

    public double getRunTime(double distance){
        return distance/this.runSpeed;
    }
}
